var createFood=()=>{
    let foodX=Math.round(Math.random()*39)+1;
    console.log(foodX);
}

setInterval(function(){
    createFood();
},500)